﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Apewer.Source
{

    /// <summary>表示在执行 Update 时，不包含此属性。</summary>
    [Serializable]
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public sealed class NoUpdateAttribute : Attribute
    {

        /// <summary>从 <see cref="NoUpdateAttribute"/> 到 Boolean 的隐式转换，判断 <see cref="NoUpdateAttribute"/> 有效。</summary>
        public static implicit operator bool(NoUpdateAttribute instance)
        {
            if (instance == null) return false;
            return true;
        }
    
    }

}
